import tktk
import tkinter as tk

if __name__=="__main__":
    def func(a,b):
        print("{}-{}".format(a,b))
        w_num.set(a)
    win = tk.Tk()
    w_num = tk.IntVar()
    w_num.set(0)
    tk.Label(win,text="跳转到第几项").grid(column=0,row=1)
    tk.Entry(win,textvariable=w_num).grid(column=1,row=1)
    tk.Button(win,text="跳转",command=lambda: xe.m_Item_Select(w_num.get())).grid(column=2,row=1)
    xe=tktk.ListFrame(win)
    xe.m_Update_Item([str(idx) for idx in range(100)])
    xe.grid(row=0,column=0,columnspan=3,sticky="WNSE")
    xe.m_CallBackFunc=func
    # xe.Item_Select("333")

    win.mainloop()